<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<div id="create">
				
	<h1>Gebruiker ${empty userEdit ? 'aanmaken' : 'wijzigen'}</h1>
	<p>Vul de volgende velden in om de user ${empty userEdit ? 'aan te maken' : ' te wijzigen'}</p>
	<div id="innercreate">
		<label for="firstname">Voornaam
			<span class="small">Vul de voornaam in</span>
		</label>
		<input type="text" id="firstname" name="firstname" value="${userEdit.firstname}" />
		
		<label for="name">Achternaam
			<span class="small">Vul de achternaam in</span>
		</label>
		<input type="text" id="name" name="name" value="${userEdit.name}" />
		
		
		<label for="address">Adres
			<span class="small">Vul het adres in</span>
		</label>
		<input type="text" id="address" name="address" value="${userEdit.address}" />
		
		<label for="email">Email
			<span class="small">Vul het email adres in</span>
		</label>
		<input type="text" id="email" name="email" value="${userEdit.email}" ${not empty userEdit ? 'disabled' : ''} />
		
		<label for="password">Password
			<span class="small">Vul het paswoord in</span>
		</label>
		<input type="password" id="password" name="password" value="${userEdit.password}" />
		
		<label for="language">Taal
			<span class="small">Selecteer de taal</span>
		</label>
		<select name="language">
			<option  value="nl" ${userEdit.language == 'NL' ? 'selected' : ''}>Nederlands</option>
			<option value="en" ${userEdit.language == 'EN' ? 'selected' : ''}>Engels</option>
		</select>
		
		<input type="hidden" name="userid" value="${empty userEdit ? '-1' : userEdit.id}" />
		<input type="hidden" name="originalEmail" value="${userEdit.address}" />
	</div>
</div>